//
//  CTCActivityForecastCell.m
//  CTC
//
//  Created by LXL on 2017/6/9.
//  Copyright © 2017年 jieshuibao. All rights reserved.
//

#import "CTCActivityForecastCell.h"
#import "CTCActivityModel.h"

@interface CTCActivityForecastCell ()
@property (weak, nonatomic) IBOutlet UILabel *introLabel;
@property (weak, nonatomic) IBOutlet UILabel *activityDateLabel;
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;
@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *companyLabel;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UILabel *activityTitleLabel;

@end

@implementation CTCActivityForecastCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setActivityModel:(CTCActivityModel *)activityModel {
    _activityModel = activityModel;
    self.activityTitleLabel.text = activityModel.title;
    self.introLabel.text = activityModel.content;
    self.activityDateLabel.text = activityModel.time;
    self.addressLabel.text = activityModel.location;
    self.dateLabel.text = [NSDate stringFromTimestamp:activityModel.createTime];
    self.phoneLabel.text = activityModel.phone;
    self.companyLabel.text = activityModel.organizer;
}

@end
